package com.itheima.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页对象
 */
@Data
@ApiModel("分页")
public class PageBean implements Serializable {
    private static final long serialVersionUID = 4775891600251907150L;
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码",required = true)
    int page = 0;
    /**
     * 页容量
     */
    @ApiModelProperty(value = "页容量",required = true)
    int limit = 10;
}
